package com.sky.service.user.impl;

import com.hxc.pay.wx.service.RefundSuccessService;
import com.sky.mapper.user.OrderMapper;
import com.sky.pojo.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RefundSuccessServiceImpl implements RefundSuccessService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void success(String outTradeNo) {
        //将订单的状态从8修改成7
        orderMapper.updateCancelOrderSuccess(Orders.CANCELLED_ORDER,outTradeNo);
    }
}
